/* global Cesium */

const Color = Cesium.Color;
// const defaultValue = Cesium.defaultValue;
// const defined = Cesium.defined;
// const defineProperties = Cesium.defineProperties;
// const Event = Cesium.Event;
// const createPropertyDescriptor = Cesium.createPropertyDescriptor;
// const Property = Cesium.Property;
const Material = Cesium.Material;

import dynamicRippleMaterialSource from './dynamicRippleMaterialSource';

/**
 * 动态波纹
 * @type {string}
 */
Material.DynamicRippleType = 'DynamicRipple';
Material._materialCache.addMaterial(Material.DynamicRippleType, {
    fabric: {
        type: Material.DynamicRippleType,
        uniforms: {
            color: new Color(1, 0, 0, 1.0),
            time: 1,
        },
        source: dynamicRippleMaterialSource,
    },
    translucent: function() {
        return true;
    },
});
